﻿using System.Collections.ObjectModel;
using DevExpress.UI.Xaml.Layout;

namespace MVVMEx1
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class QuanLyNhanVien : DXPage
    {
        public QuanLyNhanVien()
        {
            this.InitializeComponent();
            
        }


        private void Refresh(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            Model.NhanVienServices _nvServices = new Model.NhanVienServices();
            gridNV.ItemsSource = null;
            gridNV.ItemsSource = _nvServices.DSNhanVien();
        }
    }
}
